package com.itboye.textileexpres.order;

import java.util.List;

import com.itboye.textileexpres.R;
import com.itboye.textileexpres.util.MyToast;
import com.itboye.textileexpres.widget.XListView;

import android.content.Context;
import android.text.NoCopySpan.Concrete;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class FragmentMyOrderAdapter extends BaseAdapter {
	Context context;
	public FragmentMyOrderAdapter(Context context) {
		// TODO Auto-generated constructor stub
		this.context = context;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 20;
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		viewHolder holder = null;
		if (convertView == null) {
			holder = new viewHolder();
			LayoutInflater inflater = LayoutInflater.from(context);
			convertView = inflater.inflate(R.layout.item_order, null);
			holder.area_tv=(TextView) convertView.findViewById(R.id.area_tv);
//			holder.state_tv=(TextView) convertView.findViewById(R.id.state_tv);
//			holder.goods_name1_tv=(TextView) convertView.findViewById(R.id.goods_name1_tv);
//			holder.goods_name2_tv=(TextView) convertView.findViewById(R.id.goods_name2_tv);
			convertView.setTag(holder);
		} else {
			holder = (viewHolder) convertView.getTag();
		}

		
		return convertView;
	}

	class viewHolder {
		private TextView area_tv;
		private TextView state_tv;
		private TextView goods_name1_tv;
		private TextView goods_name2_tv;
		
	}
}
